//
//  JDPreOrderModel.swift
//  DragonWallet
//
//  Created by volantPig on 2024/8/14.
//

import UIKit
import HandyJSON

class JDPreOrderModel: HandyJSON {

    var postal: String?
    var totalAmount: Int?
    var mobile: String?
    var province: String?
    var totalFreightText: String?
    var receiverName: String?
    var address: String?
    var totalAmountText: String?
    var preOrderId: String?
    var totalTariffText: String?
    var defaultAddressId: String?
    var totalTariff: String?
    var totalFreight: String?
    var city: String?
    var district: String?
    
//    {
//        "postal":"116000",
//        "totalAmount":150000,
//        "mobile":"13284231123",
//        "province":"辽宁省",
//        "totalFreightText":"8.00",
//        "receiverName":"朱",
//        "address":"华北路大湾市场",
//        "totalAmountText":"150.00",
//        "preOrderId":17,
//        "totalTariffText":"14.00",
//        "defaultAddressId":2,
//        "totalTariff":13500,
//        "totalFreight":7500,
//        "city":"大连市",
//        "district":"甘井子区"
//    }
    
    var shopName: String?
    var customServicePhone: String?
    
    
    
//    {"goodsList":[{"weight":50,"volume":0,"totalVolume":0,"totalTariff":0,"goodsName":"产品测试商品02","goodsMemberLevel":1,"consumptionTariffText":"0.00","countryCode":"KR","brand":"品牌","goodsSkuId":120,"shopId":37,"shopName":"大连商业投资集团","goodsId":76,"origin":"韩国","goodsCount":1,"expressCostId":19,"goodsStatus":3,"saleType":1,"addedTariff":135000,"consumptionTariff":0,"goodsImgUrl":"b5f64900bbe90a11c39f24e343537451e36772c0d90a6236e8af24a0d4e12428","tariffId":192,"addedTariffText":"135.00","salePrice":1500000,"categoryId":154,"specificationName":"256G"}],"province":"北京市","district":"东城区","totalTariff":0,"totalFreightText":"56.22","totalAmountText":"1691.22","totalAddedTariffText":"135.00","defaultAddressId":57,"totalTariffText":"0.00","shopName":"大连商业投资集团","city":"北京市","postal":"116000","totalAddedTariff":135000,"preOrderId":1098,"preOrderNo":"pre1749369789459","receiverName":"哦哦哦","mobile":"15041702096","totalAmount":1691220,"totalConsumptionTariff":0,"totalConsumptionTariffText":"0.00","customServicePhone":"0411-84664438","address":"啊哈哈哈","totalFreight":56220}

    
//    {"district":"东城区","postal":"116000","customServicePhone":"0411-87979988","totalAmount":66560,"preOrderNo":"pre1735143040974","mobile":"15042475854","province":"北京市","totalFreightText":"1.16","goodsList":[{"goodsSkuId":6,"specificationName":"128G，白","brand":"苹果手机","countryCode":"jp","weight":300,"goodsStatus":3,"goodsMemberLevel":1,"goodsCount":1,"salePrice":60000,"goodsName":"苹果13Pro","origin":"日本","shopId":1,"goodsImgUrl":"23098758e7437f8dd602bd200035842fbf04fdfb18cf52ea7370dcb20e95c02f","saleType":2,"goodsId":2,"shopName":"跨境测试公司gf"}],"receiverName":"住","address":"UK","totalAmountText":"66.56","preOrderId":113,"totalTariffText":"5.40","defaultAddressId":8,"totalTariff":5400,"shopName":"跨境测试公司gf","totalFreight":1160,"city":"北京市"}
    
    
    
    var goodsList: [JDOrderDetailGoodsModel]?
//    var province: String?
//    var district: String?
//    var totalTariff: Int?
//    var totalFreightText: String?
//    var totalAmountText: String?
    var totalAddedTariffText: String?
//    var defaultAddressId: Int?
//    var totalTariffText: String?
//    var shopName: String?
//    var city: String?
//    var postal: String?
    var totalAddedTariff: Int?
//    var preOrderId: Int?
    var preOrderNo: String?
//    var receiverName: String?
//    var mobile: String?
//    var totalAmount: Int?
    var totalConsumptionTariff: Int?
    var totalConsumptionTariffText: String?
//    var customServicePhone: String?
//    var address: String?
//    var totalFreight: Int?
    var salePrice: Int?
    
    required init() { }
}
